package com.ln.dm1103.demo02;

import java.util.function.Consumer;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/3 16:14
 */
public class TestConsumer {
    public static void main(String[] args) {
        Consumer<Double> consumer=a->{
            System.out.println("按摩需要:"+a);
        };
        fun(consumer,500.00);
    }

    public static void fun(Consumer<Double> consumer, Double money){
        consumer.accept(money);
    }
}
